package com.yfht.framework.base.page;

import java.util.List;

public class QueryResult {
	private List resultList;
	private int totalRecordNumber;
	private int pageSize;
	private double execTime;
	private String countDesc;
	public QueryResult(List resultList, int totalRecordNumber) {
		this.resultList = resultList;
		this.totalRecordNumber = totalRecordNumber;
	}

	public QueryResult(List resultList, int totalRecordNumber, int pageSize) {
		this.resultList = resultList;
		this.totalRecordNumber = totalRecordNumber;
		this.pageSize = pageSize;
	}

	public List getResultList() {
		return resultList;
	}

	public void setResultList(List resultList) {
		this.resultList = resultList;
	}

	public int getTotalRecordNumber() {
		return totalRecordNumber;
	}

	public int getPageCount() {
		double page = (double) totalRecordNumber / pageSize;
		page = Math.ceil(page);
		return (int) page;
	}

	public void setTotalRecordNumber(int totalRecordNumber) {
		this.totalRecordNumber = totalRecordNumber;
	}

	public double getExecTime() {
		return execTime;
	}

	public void setExecTime(double execTime) {
		this.execTime = execTime;
	}
	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public String getCountDesc() {
		return countDesc;
	}

	public void setCountDesc(String countDesc) {
		this.countDesc = countDesc;
	}
}
